package com.yx.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author yx
 * @since 2023-02-14
 */
//@TableName("user")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uId", type = IdType.AUTO)
    private Integer uId;

    private String username;

    private String nickname;

    private String password;

    @TableField (value = "uAvatar")
    private String uAvatar;

    @TableField (value = "uEmail")
    private String uEmail;

    private Integer status;

    @TableField (value = "fansNum")
    private Integer fansNum;
    private Integer deleted;

    @TableField(exist = false)
    private List<Integer> roleIdList;

    @TableField(exist = false)
    private String code;
}
